<?php
 Session_Start () ;
 Include ($_SESSION ["repertoire_config"]."/garennes.cfg") ;
 Include ($_SESSION ["repertoire_config"]."/init.php") ;
 Include ("../include/config.inc") ;
 verif_droits ($droit_courant, $_SESSION ["code"]) ;
 
 $id_classe = var_courante ("id_classe", 0, 0) ;
 
 $resultats = SQL_commande ("SELECT * FROM menus WHERE numero='$droit_courant' AND ordre='0'", $id_sql) ;
 $l = SQL_tableau_associatif ($resultats, "") ; 
 
 Echo "<HTML><HEAD>" ;
 entete_html ("Garennes", "", 0) ;
 Echo styles ("none", "none", "none", $l ["couleur_fond"], "none") ;
 Echo "</HEAD>" ;
 
 Echo "<FRAMESET ROWS=\"23,40,*\" FRAMEBORDER=\"0\" BORDER=\"0\">" ;
 Echo "<FRAME SRC=\"./status.php\" NAME=\"travail_status\" NORESIZE SCROLLING=\"NO\" MARGINHEIGHT=\"0\" MARGINWIDTH=\"0\" FRAMEBORDER=\"0\">" ;
 If (valide_periode ($id_classe, periode_valide ($id_classe)))
  {
   Echo "<FRAME SRC=\"./menu_classe.php?id_classe=".$id_classe."&saisie=1\" NAME=\"travail_menu\" NORESIZE SCROLLING=\"NO\" MARGINHEIGHT=\"0\" MARGINWIDTH=\"0\" FRAMEBORDER=\"0\">" ;
  }
 Else
  {
   Echo "<FRAME SRC=\"./menu_classe.php?id_classe=".$id_classe."&saisie=0\" NAME=\"travail_menu\" NORESIZE SCROLLING=\"NO\" MARGINHEIGHT=\"0\" MARGINWIDTH=\"0\" FRAMEBORDER=\"0\">" ;
  }
 Echo "<FRAME SRC=\"./travail.php?id_classe=".$id_classe."\" NAME=\"travail_affichage\" MARGINHEIGHT=\"0\" MARGINWIDTH=\"0\" SCROLLING=\"AUTO\" FRAMEBORDER=\"0\">" ;
 Echo "</FRAMESET>" ;
 Echo "</HTML>" ;
?>